<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.net.URLEncoder"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String p = "";
	String likeName = "&likeName=";
	if (request.getParameter("likeName")!=null) {
		likeName = likeName + request.getParameter("likeName");
	}
	if (request.getParameter("typeId")!=null) {
		p = "typeId="+request.getParameter("typeId").toString() +likeName;
	}
	if (request.getParameter("groupId")!=null) {
		p = "groupId="+request.getParameter("groupId").toString() + likeName;
	}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<s:head />
		<s:i18n name="globalMessages"></s:i18n>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>首页</title>
		<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
		<script type='text/javascript' src='js/jquery.validate.min.js'></script>
		<script type='text/javascript' src='js/common.js'></script>
		<link href="style/index.css" rel="stylesheet" type="text/css" />
		<link href="manage/manage.css" rel="stylesheet" type="text/css">
		<link href="style/valid.css" rel="stylesheet" type="text/css" />
		<script type=text/javascript>

	//初始化验证 verifyCode account password
	 	function submitForm() {
			if ($.trim($("#account").val()) == "") {
				$("#accountError").text("请输入账户");
				return false;
			}
			if ($("#password").val() == "") {
				$("#passwordError").text("请输入密码");
				return false;
			}
			if ($.trim($("#verifyCode").val()) == "") {
				$("#verifyCodeError").text("请输入验证码");
				return false;
			}
		 	$("#loginForm").submit();
		}


	</script>
<style type="text/css">

#menu {
	width: 70px;
	height: 6px;
	margin: 0 auto;
}

#menu ul {
	list-style: none;
	margin: 0px;
	padding: 0px;
}

#menu ul li {
	float: left;
	margin-left: 2px;
}

#menu ul li a {
	display: block;
	width: 60px;
	height: 6px;
	text-align: center;
	font-size: 12px;
}

#menu ul li a:hover {
	
}

#menu ul li a#current {
	font-weight: bold;
	color: #fff;
}

#menu ul li ul {
	border: 1px solid #ccc;
	display: none;
	position: absolute;
	z-index: -160px;
}

#menu ul li ul li {
	float: none;
	width: 160px;
	line-height: 28px;
	background: #eee;
	margin: 0;
}

#menu ul li ul li a {
	background: none;
	width: 160px;
}

#menu ul li ul li a:hover {
	background: #333;
	color: #fff;
}

#menu ul li:hover ul {
	display: block;
}

#menu ul li.sfhover ul {
	display: block;
}
</style>
		<style type="text/css">
<!--
a:link {
	text-decoration: none;
}

a:visited {
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

a:active {
	text-decoration: none;
}

.STYLE18 {
	color: #FF780D
}

.STYLE19 {
	color: #FC7B13
}

.STYLE20 {
	color: #FB7A12
}

.textinput {
	border:1px solid #DBDBDB; height:20px;
}

-->
</style>


	</head>

	
<body style="margin:0px; text-align:center;" bgcolor="#F1F1F1" >
 <s:action name="showTop" executeResult="true"/>

<table width="100%" height="18" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td height="18" align="left" >&nbsp;
    	<s:if test="hasErrors()">
					<div class="tip" style="margin-left: 220px;">
						<s:fielderror cssStyle="padding:0;margin:0;"/>
						<s:actionerror cssStyle="padding:0;margin:0;"/>
					</div>
		</s:if>
    </td>
  </tr>
</table>

<s:form name="loginForm" id="loginForm" action="loginAction!login.action" method="post">
<table width="990" height="263" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="176" height="263" valign="top"><table width="175" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td width="175" height="38"><img src="images/yhdl.jpg" width="175" height="38" /></td>
      </tr>
      <tr>
        <td height="232" align="center" valign="top" style=" border-left:1px solid #F57301; border-right:1px solid #F57301;"><table width="151" height="228" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="24" colspan="2" align="left" valign="bottom">账&nbsp;&nbsp;户：
												<span class="tip" id="accountError"></span>
											</td>
          </tr>
          <tr>
            <td height="29" colspan="2" align="left"><s:textfield onfocus="javascript:$('#accountError').text('');" maxlength="11" size="20" name="account" id="account" cssClass="textinput"/></td>
          </tr>
          <tr>
            <td height="24" colspan="2" align="left" valign="bottom">密&nbsp;&nbsp;码：<span class="tip" id="passwordError"></span></td>
          </tr>
          <tr>
               <td height="29" colspan="2" align="left"><s:password size="20"  maxlength="16"  onfocus="javascript:$('#passwordError').text('');" id="password" name="password" maxlength="16" cssClass="textinput"/></td>
          </tr>
          <tr>
            <td height="24" colspan="2" align="left" valign="bottom">验证码：
            	<span class="tip" id="verifyCodeError" >
            	</span>
            </td>
          </tr>
          <tr>
            <td width="88" height="30" align="left"><s:textfield maxLength="4"  onfocus="javascript:$('#verifyCodeError').text('');" id="verifyCode" size="12" name="verifyCode" maxlength="16" cssClass="textinput"/></td>
            <td width="61" align="left">&nbsp;<img src="VerifyCodeImg" width="49" height="21" style="vertical-align: middle;"/></td>
          </tr>
          <tr>
            <td height="34" align="left"> 
            	<img src="images/denglu1.jpg" width="82" height="25" onclick="submitForm();" style="cursor: hand;" />
            </td>
            <td height="34"><a href="userRegister!toRetrievedPwdPage.action" class="di_ys">找回密码</a></td>
          </tr>
          <tr>
          	
            <td height="34" colspan="2" align="center"><img src="images/mfzc1.jpg" style="cursor: hand;"  onclick="javscript:location.href='userRegister!doForwordRegPage.action'"  width="145" height="24" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="10"><img src="images/left_end.jpg" width="175" height="10" /></td>
      </tr>
    </table></td>
    <td width="19">&nbsp;</td>
    <td width="795" valign="top"><table width="765" height="206" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td width="765" height="206"><table width="793" height="232" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="793" height="232" background="images/dt.jpg"><table width="690" height="219" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="30" height="84">&nbsp;</td>
                <td width="549">&nbsp;</td>
              </tr>
              <tr>
                <td height="135">&nbsp;</td>
                <td valign="middle" style="line-height:25px;"><table width="537" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="47"><span class="top_lm STYLE18"><strong>易彩通</strong></span></td>
                    <td width="490" align="left">帮助保险公司建立快速信息通道，助力寿险代理人G化行销。</td>
                  </tr>
                  <tr>
                    <td><strong class="top_lm STYLE19">易彩通</strong></td>
                    <td align="left">以寿险G化行销为核心，是移动通信技术与计算机信息技术相结合的创新应用，是满</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td align="left">足保 险代理人展业与业务服务需求的G化行销工具。</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td align="left"><span class="STYLE10 top_lm STYLE20">险种行销  客户服务  全面升级</span></td>
                  </tr>
                </table>
                </td>
              </tr>
            </table></td>
          </tr>
        </table>
          <table width="793" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="30" height="6"></td>
              <td width="84"></td>
              <td width="674"></td>
            </tr>
            <s:if test="#request.gonggao!=null">
            <tr>
              <td height="36" align="center" bgcolor="#FFFFFF" style="border-bottom:1px solid #C5C5C5; border-left:1px solid  #C5C5C5; border-top:1px solid #C5C5C5;"><img src="images/gg.jpg" width="11" height="11" /></td>
              <td nowrap="nowrap" bgcolor="#FFFFFF" class="STYLE3 STYLE9 STYLE9" style="border-bottom:1px solid #C5C5C5; border-top:1px solid #C5C5C5;"><strong>公司公告</strong>：</td>
              <td align="left" bgcolor="#FFFFFF" style="border-bottom:1px solid #C5C5C5; border-right:1px solid  #C5C5C5; border-top:1px solid #C5C5C5;"> <a href="comment!detailCompany.action?typeId=3&&detailId=${request.gonggao.id}">${request.gonggao.title}</a></td>
            </tr>
            </s:if>
          </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</s:form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/line4.jpg" width="5" height="14" /></td>
  </tr>
</table>
<table width="990" height="372" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="177" align="center" valign="top">
     <!-- 引用菜单 -->
	<jsp:include page="left_types.jsp"></jsp:include>
    
    </td>
       <td width="19">&nbsp;</td>
    <td width="794" valign="top" height="100%">
 <iframe src="indexAction!notLoginIndexMsgList.action" width="100%" height="100%" scrolling="no" name="frame_content" id="frame_content"
                onreadystatechange="stateChangeIE(this)"
                onload="stateChangeFirefox(this)"  
                frameborder="0">
 </iframe >
	
	
	
 </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="32">&nbsp;</td>
  </tr>
</table>
<!-- 中间的用户评价神马的 -->
<s:action name="showComment" executeResult="true" namespace="/"/>
 
<!-- 底部，所属公司所有权之类的 -->
<jsp:include page="foot_end.jsp"></jsp:include>

<script type=text/javascript>
var purl = "<%=p%>";
if (purl != "") {
	document.getElementById("frame_content").contentWindow.location.href= "indexAction!findByTypeAndGroup.action?" + encodeURI(encodeURI(purl));
	//$("#tmpForm").attr("action", "indexAction!findByTypeAndGroup.action?" + purl);
	//$("#tmpForm").submit();
}
	</script>
</body>
</html>

<script>

function stateChangeIE(_frame)
    {
         if (_frame.readyState=="complete")//state: loading ,interactive,   complete
         {
             AutoHeight();
         }  
    }
    function stateChangeFirefox(_frame)
    {  
        AutoHeight();
    }
    
    function AutoHeight()
    {
        if(document.readyState!='complete')
        {
            setTimeout( function(){AutoHeight();},50 );
            return;
        }
        else
        {
            try
            {   //IE、fireFox下测试通过
                var ifobj=document.getElementById("frame_content");
                ifobj.style.height = ifobj.contentWindow.document.body.scrollHeight + 0 + "px";
            }   //注意，别忘了加最后那个"px",不然fireFox下就不起作用了
                //加的那0是为了让非IE浏览器高度不会一直增加
            catch(e)
            {}
        }
    }
</script>
<script>

function open1(url)
{
var r=parseInt(Math.random()*1000);
window.showModalDialog(url,window,'status:no;help:no;dialogHeight:360px; dialogWidth:450px');
}
function open2(url)
{
window.showModalDialog(url,window,'status:no;help:no;dialogHeight:900px; dialogWidth:930px');
}
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
imgmenu = "imgmenu" + sid;

if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
document.getElementById(imgmenu).className="dt";
//imgmenu.style.background="images/sy_let_bg1.jpg";
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
document.getElementById(imgmenu).className="dt1"; 
//imgmenu.style.background="images/sy_let_bg1.jpg";
}
}
</script>